package com.zgxt.demo.mapper;


import com.zgxt.demo.entity.DialogueDetails;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public interface DialogueDetailsMapper {
    //会话记录
    void sessionRecord(@Param("content") String content, @Param("userId") String userId,  @Param("identity") Integer identity, @Param("createTime") String createTime);
    //查询会话记录
    List<DialogueDetails> selectSessionRecord(@Param("userId") Integer userId, @Param("currentPage") Integer currentPage, @Param("rows") Integer rows);
    //删除用户的聊天记录
    Integer deleteChat(@Param("userId") Integer userId);
    //查询聊天记录
    List<DialogueDetails> QueryChatHistory(@Param("pageIndex") Integer pageIndex, @Param("pageSize") Integer pageSize, @Param("name") String name);
    //聊天记录的总数
    Integer ChatHistoryCount(@Param("name") String name);
    //删除聊天记录
    Integer deleteChatHistory(@Param("ids") String[] ids,@Param("updateTime") String updateTime);
}




